{include file="header.tpl"}

   <h1>Step 3 - Settings</h1>
   
   <div id="content">
      
      <form id="frm_install" action="./index.php?step=settings" method="post">
         
         <fieldset class="panel">
            
   			<div>
   				<label for="email_server">Email Server:</label>
        			<input id="email_server" name="email_server" type="text" value="{$settings.email_server}" />
        			{if $settings.errors.email_server}<p class="error">{$settings.errors.email_server}</p>{/if}
        			<p class="rules">SMTP server to use for outgoing emails.<br />Must be on port 25 and support anonymous connections.</p>
   	 		</div>
   			
   			<div>
   				<label for="email_from">From:</label>
        			<input id="email_from" name="email_from" type="text" value="{$settings.email_from}" />
                 {if $settings.errors.email_from}<p class="error">{$settings.errors.email_from}</p>{/if}
        			<p class="rules">This is the email address that will appear in the From field of emails sent from SiTrack.</p>
   	 		</div>
   			
         </fieldset>
         
         <fieldset class="panel clear">
            
   			<div>
   				<label>Allow User Registration?</label>
        			<p class="rules">This allows people to create user accounts themselves.<br />Choosing No means user accounts must be created by an administrator.</p>
               <div class="option">
        			   <label for="allow_registration_1" class="option"><input type="radio" id="allow_registration_1" name="allow_registration" value="1"{if $settings.allow_registration} checked="checked"{/if} /> Yes</label>
        			</div>
        			<div class="option">
        			   <label for="allow_registration_0" class="option"><input type="radio" id="allow_registration_0" name="allow_registration" value="0"{if !$settings.allow_registration} checked="checked"{/if} /> No</label>
        			</div>
   	 		</div>
   			
   			<div>
   				<label>Allow Automatic Activation?</label>
        			<p class="rules">This will email new users with a link to activate their account.<br />Choosing No means user accounts must be activated by an administrator.</p>
                 <div class="option">
        			   <label for="auto_activation_1" class="option"><input type="radio" id="auto_activation_1" name="auto_activation" value="1"{if $settings.auto_activation} checked="checked"{/if} /> Yes</label>
        			</div>
        			<div class="option">
        			   <label for="auto_activation_0" class="option"><input type="radio" id="auto_activation_0" name="auto_activation" value="0"{if !$settings.auto_activation} checked="checked"{/if} /> No</label>
        			</div>
   	 		</div>
   			
         </fieldset>
         
   		<div class="button_bar">
   			<button type="submit" name="submit_frm_install" value="1">Continue</button>or <a href="./index.php?step=project">Back</a>
   		</div>
         
      </form>
      
   </div>

{include file="footer.tpl"}
